import request from '@/utils/request'
import { Iordertype } from '@/type/user'
export default {
    getOrder: (data: Iordertype) => request.post('/getOrder', data),// pageSize, currentPage, type, id
    addGoodsOrder: (data: Iordertype) => request.post('/addGoodsOrder', data),
    deleteUser: (id: number) => request.get('/getOrder', { params: { id } }),
    deleteOrder: (data: any) => request.get('/deleteOrder', { params: data }),
    updateGoodState: (data: any) => request.get('/updateGoodState', { params: data }),
    updateIsok: (data: any) => request.get('/updateIsok', { params: data }),
    getServerGoods: (data: any) => request.post('/getAllServegoods', data),
    getNomarlGoodsClassify: (data: any) => request.get('/getAllGoodstype', { params: data }),
    getNomarlGoodsList: (data: any) => request.post('/getAllGoods', data),
    updateGoods: (data: any) => request.put('/updateGoods', data),
    getGoodsType: () => request.get('/getAllGoodstype'),
    addGoods: (data: any) => request.post('/addGoods', data),
    searchOneGoods: (data: any) => request.get('/serchOneGood', { params: data }),
    delGoods: (data: any) => request.delete('/deleteGoods', { params: data }),

    //获取商品图片
    getGoodsImg: (data: any) => request.post('/getGoodsImg', data),
    //商品模糊查询
    SearchGoods: (data: any) => request.post('/SearchGoods', data),

}